package com.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.util
 * @date:2021/9/16
 */
public class DateUtil {

    public static Date StrToDate(String str) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
        Date date = null;
        try {
            date = format.parse(str);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return date;
    }

}
